<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <style>
        iframe{border:1px solid red;}
    </style>
<body>
    <h4>Screener via iframe</h4>
    <iframe frameborder="0" scrolling="no" id="ifm_screener"  src=http://qsstage.morningstar.com/apis/api.jsp?instid=QUEST&module=screener&fixHeight=false&onClickCheckbox=screenerClickCheckboxCallBack&onTickerClick=screenerClickCallback&onHeightChange=screenerHeightChangeCallback&onLoad=screenerOnLoadCallback&proxyurl=http://www.quest.com/qsapi_proxy.html></iframe>
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
    <script type="text/javascript" src="http://qsstage.morningstar.com/apis/common/apimanager.js"></script>
    <script type="text/javascript">
        
        //initialization for QSAPI object
        QSAPI.init("QUEST");

        window.screenerOnLoadCallback = function(para){
            para = eval('(' + para + ')');

            //set the iframe's width as the min-width
            if (para.minWidth && document.getElementById("ifm_screener").style.width < para.minWidth) {
                document.getElementById("ifm_screener").style.width = para.minWidth + 'px';
            }
            
            //set the iframe's height as the return value 
            document.getElementById("ifm_screener").style.height = para.height + 'px';
            
        };
        
        window.screenerHeightChangeCallback = function(para){
            para = eval('(' + para + ')');
            
            //set the iframe's height as the return value 
            document.getElementById("ifm_screener").style.height = para.height + 'px';
        };

    </script>
</body>
</html>